﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using Gameplay.PVE.Survivor;
using OWL.Rendering.HRP;
using UnityEditor;
using UnityEngine;
using Yoozoo.HRP.Runtime;
using Vector3 = UnityEngine.Vector3;

[CustomEditor(typeof(MapFogData))]
public class MapFogInspector : Editor
{
    private MapFogData fogData;

    private void OnEnable()
    {
        fogData = target as MapFogData;
    }

    public override void OnInspectorGUI()
    {
       /*if (GUILayout.Button("生成"))
        {
            GenerateMesh();
        }*/
        if (GUILayout.Button("生成图片"))
        {
            fogData.Show(true);
        }

        if (GUILayout.Button("生成并保存图片"))
        {
            fogData.Show(true);
            fogData.SaveImage();
        }
        base.OnInspectorGUI();
    }

    private void GenerateMesh()
    {
        fogData.Show(true);
    }
}